package com.example.concurrent.demo.sync;

/**
 * @author susc
 * @title: SynchronizedDemo
 * @projectName concurrent-demo
 * @description: TODO
 * @date 2021/9/2813:59
 */
public class SynchronizedDemo {

    public void method(){
        synchronized (this){
            System.out.println("synchronized 代码块");
        }
    }
}
